home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD>
- <LINK REL="stylesheet" TYPE="text/css" HREF="%1css/default.css">
-
- <script language="Javascript">
- //LOCALIZATION STRINGS
- var L_NOT_A_NUMBER_OR_ZERO = "The value must be a whole number greater than zero.";
- var L_UNKNOWN = "Unknown";
- var L_DIR_CANNOT_BE_EMPTY = "The destination directory cannot be empty.";
- var L_HOST_NAME_EMPTY = "The host name cannot be empty.";
- var L_FROM_EMPTY = "The From field cannot be empty.";
- var L_TO_EMPTY = "The To field cannot be empty.";
- </script>
-
- <SCRIPT LANGUAGE="JavaScript" SRC="%1js/FormChek.js"></SCRIPT>
-
- <SCRIPT>
- function init()
- {
- var sel = '%2';
- if(sel == "unknown")
- {
- option = new Option(L_UNKNOWN, sel, false, false);
- document.forms['destForm'].dest.options[document.forms['destForm'].dest.options.length] = option;
- }
-
- for(var i = 0; i < document.forms['destForm'].dest.options.length; ++i)
- {
- if(document.forms['destForm'].dest.options[i].value == sel)
- {
- document.forms['destForm'].dest.options[i].selected = true;
- break;
- }
- }
-
- // call the dest init function
- onDestInit();
- }
-
- function changeDest(d)
- {
- document.location.replace("%3" + "&dest=" + d);
- }
-
- function submitForm()
- {
- var dest = document.forms["destForm"].dest;
- if(dest.options[dest.selectedIndex].value == "unknown")
- {
- // don't submit the form
- return;
- }
-
- if(dest.options[dest.selectedIndex].value == "disk")
- {
- if (document.forms["destForm"].server_default.value != "true")
- {
- if(document.forms["destForm"].dir.value == "")
- {
- alert(L_DIR_CANNOT_BE_EMPTY);
- document.forms["destForm"].dir.focus();
- return;
- }
- }
- }
-
- if(dest.options[dest.selectedIndex].value == "ftp")
- {
- if (document.forms["destForm"].server_default.value != "true")
- {
- if(document.forms["destForm"].host.value == "")
- {
- alert(L_HOST_NAME_EMPTY);
- document.forms["destForm"].host.focus();
- return;
- }
- }
-
- var port = document.forms["destForm"].port;
- if(!isPositiveInteger(port.value))
- {
- alert(L_NOT_A_NUMBER_OR_ZERO);
- port.focus();
- port.select();
- return;
- }
- }
-
- if(dest.options[dest.selectedIndex].value == "smtp")
- {
- if (document.forms["destForm"].server_default.value != "true")
- {
- if(document.forms["destForm"].sender.value == "")
- {
- alert(L_FROM_EMPTY);
- document.forms["destForm"].sender.focus();
- return;
- }
- if(document.forms["destForm"].to.value == "")
- {
- alert(L_TO_EMPTY);
- document.forms["destForm"].to.focus();
- return;
- }
- }
- }
-
- document.forms['destForm'].submit();
- }
-
- function resetForm()
- {
- document.location.replace("%4");
- }
-
- function addProperty()
- {
- var prop = document.forms['destForm'].props.options[document.forms['destForm'].props.selectedIndex].value;
- document.forms['destForm'].specname.value = document.forms['destForm'].specname.value + prop;
- document.forms['destForm'].specname.focus();
- }
-
- function addLink()
- {
- var prop = "%SI_VIEWER_URL%";
- document.forms['destForm'].msg.value = document.forms['destForm'].msg.value + "\n" + prop;
- document.forms['destForm'].msg.focus();
- }
- </SCRIPT>
-
- </HEAD>
- <BODY LEFTMARGIN="5" RIGHTMARGIN="5" onload='init()'>
-
- <DIV ID="tooltip" STYLE="position:absolute;visibility:hidden;z-index:99;"></DIV>
- <SCRIPT SRC="%1js/helps.js"></SCRIPT>
- <SCRIPT SRC="%1js/tips.js"></SCRIPT>
-
- <span class='listSelected'>Set the Destination for the report.</span><br>
-
- <p>
-
- <center>
- <form name='destForm' method=POST action='%5'>
- <table width='90%'>
- <tr><td class='list'>
- </td></tr>
- <tr><td class='list'>
- Destination:
- <select name='dest' class='menuFormElement' onchange='changeDest(this.options[this.selectedIndex].value)';>
- <option value='frs' selected>Default
- <option value='disk'>Unmanaged Disk
- <option value='ftp'>FTP
- <option value='smtp'>Email (SMTP)
- </select>
- </td></tr>
- </table>
-
- <p>
-
- %6
-
- </form>
- </center>
-
- <table align="right" border=0 cellpadding=0>
- <tr valign=center>
- <td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript: submitForm()" onMouseOver="St(7);window.status='';return true;" onMouseOut="Ht()">Update</a></div>
- </td>
- <td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript: resetForm()" onMouseOver="St(8);window.status='';return true;" onMouseOut="Ht()">Reset</a></div>
- </td>
- </tr>
- </table>
-
- </BODY>
- </HTML>
-